﻿using System;
using SteeringBehaviors;
using UnityEngine;

// Token: 0x020001D2 RID: 466
public class CustomSteer : SteerBehavior
{
	// Token: 0x060009F8 RID: 2552 RVA: 0x000596EF File Offset: 0x000578EF
	public CustomSteer(MovementCharacter agent, IKinematic target) : base(agent, target)
	{
		this.Weight = 1f;
	}

	// Token: 0x060009F9 RID: 2553 RVA: 0x00059704 File Offset: 0x00057904
	public override SteeringOutput GetSteering()
	{
		this.pSteering.linear.y = 0f;
		this.pSteering.linear.Normalize();
		float maxAccel = this.agent.MaxAccel;
		SteeringOutput pSteering = this.pSteering;
		pSteering.linear.x = pSteering.linear.x * maxAccel;
		SteeringOutput pSteering2 = this.pSteering;
		pSteering2.linear.y = pSteering2.linear.y * maxAccel;
		SteeringOutput pSteering3 = this.pSteering;
		pSteering3.linear.z = pSteering3.linear.z * maxAccel;
		return this.pSteering;
	}

	// Token: 0x060009FA RID: 2554 RVA: 0x00059790 File Offset: 0x00057990
	public void SetLinearSteering(Vector3 direction)
	{
		this.pSteering.linear = direction;
	}
}
